

public class Main123456543 {

    public static int sum_over(int[][] numbers, int target) {
        int rows = numbers.length;
        int total = 0;
        for (int i = 0; i < rows; i++) {
            for (int s = 0; s < numbers[i].length; s++) {
                if (numbers[i][s] > target) {
                    total = total + numbers[i][s];
                }
            }
        }
        return total;
    }


    public static void main(String[] args) {

        int[][] source = {{2, 4}, {1, 4, 8, 7}, {20, 14, 70, 8, 130}};
        System.out.println(sum_over(source, 15));

        int[][] source2 = {{2, 4}, {1, 4, 8, 7}, {20, 14, 70, 8, 130}};
        System.out.println(sum_over(source2, 55));
    }
}







